package com.youdoneed.user.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.user.model.FocusRegion;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QFocusRegion is a Querydsl query type for FocusRegion
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QFocusRegion extends com.querydsl.sql.RelationalPathBase<FocusRegion> {

    private static final long serialVersionUID = 1492678431;

    public static final QFocusRegion FocusRegion = new QFocusRegion("FocusRegion");

    public final NumberPath<Integer> checkState = createNumber("checkState", Integer.class);

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final StringPath focusRegionId = createString("focusRegionId");

    public final NumberPath<Double> latitude = createNumber("latitude", Double.class);

    public final NumberPath<Double> longitude = createNumber("longitude", Double.class);

    public final StringPath name = createString("name");

    public final StringPath userId = createString("userId");

    public final com.querydsl.sql.PrimaryKey<FocusRegion> primary = createPrimaryKey(focusRegionId);

    public QFocusRegion(String variable) {
        super(FocusRegion.class, forVariable(variable), "null", "FocusRegion");
        addMetadata();
    }

    public QFocusRegion(String variable, String schema, String table) {
        super(FocusRegion.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QFocusRegion(String variable, String schema) {
        super(FocusRegion.class, forVariable(variable), schema, "FocusRegion");
        addMetadata();
    }

    public QFocusRegion(Path<? extends FocusRegion> path) {
        super(path.getType(), path.getMetadata(), "null", "FocusRegion");
        addMetadata();
    }

    public QFocusRegion(PathMetadata metadata) {
        super(FocusRegion.class, metadata, "null", "FocusRegion");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(checkState, ColumnMetadata.named("checkState").withIndex(6).ofType(Types.INTEGER).withSize(10));
        addMetadata(createTime, ColumnMetadata.named("createTime").withIndex(7).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(focusRegionId, ColumnMetadata.named("focusRegionId").withIndex(1).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(latitude, ColumnMetadata.named("latitude").withIndex(5).ofType(Types.DOUBLE).withSize(22).notNull());
        addMetadata(longitude, ColumnMetadata.named("longitude").withIndex(4).ofType(Types.DOUBLE).withSize(22).notNull());
        addMetadata(name, ColumnMetadata.named("name").withIndex(2).ofType(Types.VARCHAR).withSize(64).notNull());
        addMetadata(userId, ColumnMetadata.named("userId").withIndex(3).ofType(Types.VARCHAR).withSize(20).notNull());
    }

}

